<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2020/4/22
  Time: 10:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>
    我的主页
</h1>

<a href="/user">新增</a>

<table border="1">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>班级</th>
        <th>密码</th>
        <th>操作</th>
    </tr>

    <c:forEach items="${list}" var="user">
        <tr>
            <th>${user.id}</th>
            <th>${user.name}</th>
            <th>${user.banji}</th>
            <th>${user.pwd}</th>
            <th><a href="/getuser?id=${user.id}">[修改]</a><a href="/deluser?id=${user.id}">[删除]</a></th>
        </tr>
    </c:forEach>
</table>

</body>
</html>
